package com.job.client.company.controller;

import com.job.client.common.result.ResponseResult;
import com.job.client.company.service.AuthenticationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/api/v1/client/company/authentication")
@Api(tags = "公司认证人员列表接口")
public class AuthenticationController {
    @Autowired
    private AuthenticationService authenticationService;

    @PostMapping
    @ApiOperation("查找用户是否被公司认证")
    public ResponseResult userIsAuth(@RequestBody String userId){
        return authenticationService.userIsAuth(userId);
    }

    @GetMapping("/authNumber")
    @ApiOperation("查找被公司认证的人员数量")
    public ResponseResult authNumber(@RequestParam String companyId){
        return authenticationService.authNumber(companyId);
    }
}
